//
//  CustomAnnotationView.h
//  didihaha
//
//  Created by 赵忠鹏 on 2017/8/17.
//  Copyright © 2017年 zhaozhongpeng. All rights reserved.
//

#import <QMapKit/QMapKit.h>
#import "CustomCalloutView.h"

@interface CustomAnnotationView : QAnnotationView

//设置callout要显示的图片
-(void)setCalloutImage:(UIImage *)image;

//设置callout内置button的标题和状态
-(void)setCalloutBtnTitle:(NSString *)title
                 forState:(UIControlState)state;

//设置callout的button回调
-(void)addCalloutBtnTarget:(id)target
                    action:(SEL)action
          forControlEvents:(UIControlEvents)events;

@property (nonatomic, strong) UIImage *imageCallout;
@property (nonatomic, strong) NSString *btnTitle;
@property (nonatomic, strong) id btnTarget;
@property (nonatomic) UIControlState btnState;
@property (nonatomic) SEL btnAction;
@property (nonatomic) UIControlEvents btnControlEvents;
@property (nonatomic, strong) CustomCalloutView *customCalloutView;

@end
